
package com.hc.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.hc.dao.ICompanyPartnerDao;
import com.hc.domain.CompanyPartner;
@Repository
public class CompanyPartnerDaoImpl extends BaseDaoImpl<CompanyPartner> implements ICompanyPartnerDao {

	@Override
	public List<CompanyPartner> findCompanys() {
		return super.find("FROM CompanyPartner c");
		
	}

	@Override
	public void saveCompany(CompanyPartner cp) {
		super.save(cp);
	}

	@Override
	public CompanyPartner getById(int id) {
		return super.get("FROM CompanyPartner c WHERE c.id=?", new Object[] {id});
	}

	@Override
	public void updateCompany(CompanyPartner cp) {
		super.update(cp);
	}

	@Override
	public void deleteCompany(CompanyPartner cp) {
		super.delete(cp);
	}

}

